Optimal. Leaf size=257 \[ -\frac{a^{3/4} (A b-a B) \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} \sqrt{x}+\sqrt{a}+\sqrt{b} x\right )}{2 \sqrt{2} b^{11/4}}+\frac{a^{3/4} (A b-a B) \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} \sqrt{x}+\sqrt{a}+\sqrt{b} x\right )}{2 \sqrt{2} b^{11/4}}+\frac{a^{3/4} (A b-a B) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} \sqrt{x}}{\sqrt [4]{a}}\right )}{\sqrt{2} b^{11/4}}-\frac{a^{3/4} (A b-a B) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} \sqrt{x}}{\sqrt [4]{a}}+1\right )}{\sqrt{2} b^{11/4}}+\frac{2 x^{3/2} (A b-a B)}{3 b^2}+\frac{2 B x^{7/2}}{7 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.205399, antiderivative size = 257, normalized size of antiderivative = 1., number of steps used = 12, number of rules used = 9, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.409, Rules used = {459, 321, 329, 297, 1162, 617, 204, 1165, 628} \[ -\frac{a^{3/4} (A b-a B) \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} \sqrt{x}+\sqrt{a}+\sqrt{b} x\right )}{2 \sqrt{2} b^{11/4}}+\frac{a^{3/4} (A b-a B) \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} \sqrt{x}+\sqrt{a}+\sqrt{b} x\right )}{2 \sqrt{2} b^{11/4}}+\frac{a^{3/4} (A b-a B) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} \sqrt{x}}{\sqrt [4]{a}}\right )}{\sqrt{2} b^{11/4}}-\frac{a^{3/4} (A b-a B) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} \sqrt{x}}{\sqrt [4]{a}}+1\right )}{\sqrt{2} b^{11/4}}+\frac{2 x^{3/2} (A b-a B)}{3 b^2}+\frac{2 B x^{7/2}}{7 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 459
Rule 321
Rule 329
Rule 297
Rule 1162
Rule 617
Rule 204
Rule 1165
Rule 628
Rubi steps
\begin{align*} \int \frac{x^{5/2} \left (A+B x^2\right )}{a+b x^2} \, dx &=\frac{2 B x^{7/2}}{7 b}-\frac{\left (2 \left (-\frac{7 A b}{2}+\frac{7 a B}{2}\right )\right ) \int \frac{x^{5/2}}{a+b x^2} \, dx}{7 b}\\ &=\frac{2 (A b-a B) x^{3/2}}{3 b^2}+\frac{2 B x^{7/2}}{7 b}-\frac{(a (A b-a B)) \int \frac{\sqrt{x}}{a+b x^2} \, dx}{b^2}\\ &=\frac{2 (A b-a B) x^{3/2}}{3 b^2}+\frac{2 B x^{7/2}}{7 b}-\frac{(2 a (A b-a B)) \operatorname{Subst}\left (\int \frac{x^2}{a+b x^4} \, dx,x,\sqrt{x}\right )}{b^2}\\ &=\frac{2 (A b-a B) x^{3/2}}{3 b^2}+\frac{2 B x^{7/2}}{7 b}+\frac{(a (A b-a B)) \operatorname{Subst}\left (\int \frac{\sqrt{a}-\sqrt{b} x^2}{a+b x^4} \, dx,x,\sqrt{x}\right )}{b^{5/2}}-\frac{(a (A b-a B)) \operatorname{Subst}\left (\int \frac{\sqrt{a}+\sqrt{b} x^2}{a+b x^4} \, dx,x,\sqrt{x}\right )}{b^{5/2}}\\ &=\frac{2 (A b-a B) x^{3/2}}{3 b^2}+\frac{2 B x^{7/2}}{7 b}-\frac{(a (A b-a B)) \operatorname{Subst}\left (\int \frac{1}{\frac{\sqrt{a}}{\sqrt{b}}-\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{b}}+x^2} \, dx,x,\sqrt{x}\right )}{2 b^3}-\frac{(a (A b-a B)) \operatorname{Subst}\left (\int \frac{1}{\frac{\sqrt{a}}{\sqrt{b}}+\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{b}}+x^2} \, dx,x,\sqrt{x}\right )}{2 b^3}-\frac{\left (a^{3/4} (A b-a B)\right ) \operatorname{Subst}\left (\int \frac{\frac{\sqrt{2} \sqrt [4]{a}}{\sqrt [4]{b}}+2 x}{-\frac{\sqrt{a}}{\sqrt{b}}-\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{b}}-x^2} \, dx,x,\sqrt{x}\right )}{2 \sqrt{2} b^{11/4}}-\frac{\left (a^{3/4} (A b-a B)\right ) \operatorname{Subst}\left (\int \frac{\frac{\sqrt{2} \sqrt [4]{a}}{\sqrt [4]{b}}-2 x}{-\frac{\sqrt{a}}{\sqrt{b}}+\frac{\sqrt{2} \sqrt [4]{a} x}{\sqrt [4]{b}}-x^2} \, dx,x,\sqrt{x}\right )}{2 \sqrt{2} b^{11/4}}\\ &=\frac{2 (A b-a B) x^{3/2}}{3 b^2}+\frac{2 B x^{7/2}}{7 b}-\frac{a^{3/4} (A b-a B) \log \left (\sqrt{a}-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} \sqrt{x}+\sqrt{b} x\right )}{2 \sqrt{2} b^{11/4}}+\frac{a^{3/4} (A b-a B) \log \left (\sqrt{a}+\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} \sqrt{x}+\sqrt{b} x\right )}{2 \sqrt{2} b^{11/4}}-\frac{\left (a^{3/4} (A b-a B)\right ) \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1-\frac{\sqrt{2} \sqrt [4]{b} \sqrt{x}}{\sqrt [4]{a}}\right )}{\sqrt{2} b^{11/4}}+\frac{\left (a^{3/4} (A b-a B)\right ) \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1+\frac{\sqrt{2} \sqrt [4]{b} \sqrt{x}}{\sqrt [4]{a}}\right )}{\sqrt{2} b^{11/4}}\\ &=\frac{2 (A b-a B) x^{3/2}}{3 b^2}+\frac{2 B x^{7/2}}{7 b}+\frac{a^{3/4} (A b-a B) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} \sqrt{x}}{\sqrt [4]{a}}\right )}{\sqrt{2} b^{11/4}}-\frac{a^{3/4} (A b-a B) \tan ^{-1}\left (1+\frac{\sqrt{2} \sqrt [4]{b} \sqrt{x}}{\sqrt [4]{a}}\right )}{\sqrt{2} b^{11/4}}-\frac{a^{3/4} (A b-a B) \log \left (\sqrt{a}-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} \sqrt{x}+\sqrt{b} x\right )}{2 \sqrt{2} b^{11/4}}+\frac{a^{3/4} (A b-a B) \log \left (\sqrt{a}+\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} \sqrt{x}+\sqrt{b} x\right )}{2 \sqrt{2} b^{11/4}}\\ \end{align*}
Mathematica [A] time = 0.135887, size = 110, normalized size = 0.43 \[ \frac{2 b^{3/4} x^{3/2} \left (-7 a B+7 A b+3 b B x^2\right )-21 (-a)^{3/4} (a B-A b) \tan ^{-1}\left (\frac{\sqrt [4]{b} \sqrt{x}}{\sqrt [4]{-a}}\right )+21 (-a)^{3/4} (a B-A b) \tanh ^{-1}\left (\frac{\sqrt [4]{b} \sqrt{x}}{\sqrt [4]{-a}}\right )}{21 b^{11/4}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.009, size = 308, normalized size = 1.2 \begin{align*}{\frac{2\,B}{7\,b}{x}^{{\frac{7}{2}}}}+{\frac{2\,A}{3\,b}{x}^{{\frac{3}{2}}}}-{\frac{2\,Ba}{3\,{b}^{2}}{x}^{{\frac{3}{2}}}}-{\frac{a\sqrt{2}A}{2\,{b}^{2}}\arctan \left ({\sqrt{2}\sqrt{x}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-1 \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-{\frac{a\sqrt{2}A}{4\,{b}^{2}}\ln \left ({ \left ( x-\sqrt [4]{{\frac{a}{b}}}\sqrt{x}\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) \left ( x+\sqrt [4]{{\frac{a}{b}}}\sqrt{x}\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) ^{-1}} \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-{\frac{a\sqrt{2}A}{2\,{b}^{2}}\arctan \left ({\sqrt{2}\sqrt{x}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+1 \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+{\frac{{a}^{2}\sqrt{2}B}{2\,{b}^{3}}\arctan \left ({\sqrt{2}\sqrt{x}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-1 \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+{\frac{{a}^{2}\sqrt{2}B}{4\,{b}^{3}}\ln \left ({ \left ( x-\sqrt [4]{{\frac{a}{b}}}\sqrt{x}\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) \left ( x+\sqrt [4]{{\frac{a}{b}}}\sqrt{x}\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) ^{-1}} \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+{\frac{{a}^{2}\sqrt{2}B}{2\,{b}^{3}}\arctan \left ({\sqrt{2}\sqrt{x}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+1 \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 0.98935, size = 1823, normalized size = 7.09 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.1624, size = 356, normalized size = 1.39 \begin{align*} \frac{\sqrt{2}{\left (\left (a b^{3}\right )^{\frac{3}{4}} B a - \left (a b^{3}\right )^{\frac{3}{4}} A b\right )} \arctan \left (\frac{\sqrt{2}{\left (\sqrt{2} \left (\frac{a}{b}\right )^{\frac{1}{4}} + 2 \, \sqrt{x}\right )}}{2 \, \left (\frac{a}{b}\right )^{\frac{1}{4}}}\right )}{2 \, b^{5}} + \frac{\sqrt{2}{\left (\left (a b^{3}\right )^{\frac{3}{4}} B a - \left (a b^{3}\right )^{\frac{3}{4}} A b\right )} \arctan \left (-\frac{\sqrt{2}{\left (\sqrt{2} \left (\frac{a}{b}\right )^{\frac{1}{4}} - 2 \, \sqrt{x}\right )}}{2 \, \left (\frac{a}{b}\right )^{\frac{1}{4}}}\right )}{2 \, b^{5}} - \frac{\sqrt{2}{\left (\left (a b^{3}\right )^{\frac{3}{4}} B a - \left (a b^{3}\right )^{\frac{3}{4}} A b\right )} \log \left (\sqrt{2} \sqrt{x} \left (\frac{a}{b}\right )^{\frac{1}{4}} + x + \sqrt{\frac{a}{b}}\right )}{4 \, b^{5}} + \frac{\sqrt{2}{\left (\left (a b^{3}\right )^{\frac{3}{4}} B a - \left (a b^{3}\right )^{\frac{3}{4}} A b\right )} \log \left (-\sqrt{2} \sqrt{x} \left (\frac{a}{b}\right )^{\frac{1}{4}} + x + \sqrt{\frac{a}{b}}\right )}{4 \, b^{5}} + \frac{2 \,{\left (3 \, B b^{6} x^{\frac{7}{2}} - 7 \, B a b^{5} x^{\frac{3}{2}} + 7 \, A b^{6} x^{\frac{3}{2}}\right )}}{21 \, b^{7}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]